#pragma once
#include <../QtQml/QQmlNetworkAccessManagerFactory>
#include <Network/NetworkAccessManager.h>

namespace TC
{
	namespace Network
	{
		class QmlNetworkAccessManagerFactory : public QQmlNetworkAccessManagerFactory
		{
		public:
			virtual ~QmlNetworkAccessManagerFactory() override {};

		public:
			virtual QNetworkAccessManager * create(QObject *parent) override
			{
				return new NetworkAccessManager(parent);
			};
		};
	}
}